package model.altarica_fields;

import java.util.LinkedList;

public class EnumType {

    private LinkedList<String> enumeration;

    public EnumType() {

        this.enumeration = new LinkedList<String>();
    }

    public void add(String str) {

        this.enumeration.addLast(str);
    }

    @Override
    public String toString() {

        String str = "{ ";

        for (String e : enumeration) {
            str += e + ", ";
        }

        str = str.substring(0, str.length() - 2);

        str += " }";

        return str;
    }
}
